home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / emacs-18.59src.lha / emacs-18.59 / amiga / contrib / lindgren / xsh11.lha / xsh.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-29  |  552 b   |  33 lines

  1. /*
  2.  *  NAME
  3.  *    xsh
  4.  *
  5.  *  DESCRIPTION
  6.  *    Try to create a new wshell within an old shell window.
  7.  *    (To be used together with emacs)
  8.  *
  9.  *  AUTHOR
  10.  *    Anders Lindgren, d91ali@csd.uu.se
  11.  *
  12.  *  HISTORY
  13.  *         d91ali - Oct 28, 1992: Created.
  14.  */
  15.  
  16. #include <exec/types.h>
  17.  
  18. #include <dos/dos.h>
  19.  
  20. #define _USEOLDEXEC_
  21. #include <proto/exec.h>
  22. #include <proto/dos.h>
  23.  
  24. void __saveds
  25. not_main()
  26. {
  27.     register struct Library * DOSBase;
  28.     if (DOSBase = OpenLibrary("dos.library", 0L)) {
  29.     Execute("s:WShell-Startup", Input(), 0L);
  30.     CloseLibrary(DOSBase);
  31.     }
  32. }
  33.